<#macro header _title="">
	<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
	<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>${_title}</title>
		<link rel="stylesheet" type="text/css" href="${base}/web/css/web_style.css" />
    	<script language="javascript" type="text/javascript" src="${base}/web/js/jquery.js"></script>
    	<script language="javascript" type="text/javascript" src="${base}/web/js/validator.js"></script>
    	<script language="javascript" type="text/javascript">
			$(document).ready(function() { 
				//alert($("#MianFrame", window.top.document).height());
				//alert($(document.body).height());
			    autoHeight();
			}); 
			function autoHeight(){
				$("#MianFrame", window.parent.document).height($(document.body).height()+20);
			}
		</script>
		<#nested>
	</head>
</#macro>

<#macro pagerCode>
	<div class="list">
		<#if (pager.result?size > 0)>
			<div class="pagerBar">
<!--				<div class="delete">
					<input type="button" id="searchButton" class="button" value="批量删除" />
				</div>-->
				<div class="pager">
					<script type="text/javascript">
					$().ready( function() {
						$("#pager").pager({
							pagenumber: ${pager.pageNumber},
							pagecount: ${pager.pageCount},
							buttonClickCallback: gotoPage
						});
					});
					var gotoPage = function(pNum) {
						$("#pageNumber").val(pNum);
						$("#listForm").submit();
					};
					</script>
					<span id="pager"></span>
					<input type="hidden" name="pageNumber" id="pageNumber" value="${pager.pageNumber}" />
					<!--<input type="hidden" name="orderBy" id="orderBy" value="${pager.orderBy}" />
					<input type="hidden" name="orderType" id="order" value="${pager.orderType}" />-->
				</div>
			<div>
		<#else>
			<div class="noRecord">没有找到任何记录!</div>
		</#if>
	</div>
</#macro>

<#macro position _value="">
	<!-- 当前位置 -->
	<div class="Position">
		<div class="Position-middle">
			<div class="Position-left"></div>
			<div class="Position-caption">当前位置：${_value}</div>
			<div class="Position-right"></div>
		</div>
	</div>
</#macro>

<#macro listIndex _listTitle="" _data="" _dataUrl="">
		<!--搜索条件 开始 -->
        <div class="title marginTop15">
            <div class="title-middle">
                <div class="title-left"></div>
                <div class="title-caption">查询条件</div>
                <div class="title-right"></div>
            </div>
        </div>
                        
		<!-- table -->
        <table class="table1">
            <colgroup>
                <col style="width:13%; background-color: #eef3f7;" />
                <col style="width:20%;" />
                <col style="width:13%; background-color: #eef3f7;" />
                <col style="width:20%;" />
                <col style="width:13%; background-color: #eef3f7;" />
                <col style="width:21%;" />
            </colgroup>
            <tr>
                <td>受理编号</td>
                <td><input type="text" name="slId" id="Text2" class="input4" /></td>
                <td>委托编号</td>
                <td><input type="text" name="wtId" id="Text3" class="input4" /></td>
                <td>申请人代表姓名</td>
                <td>
                    <input type="text" name="name" id="Text1" class="input4" /></td>
            </tr>
            <tr>
                <td>证件号</td>
                <td><input type="text" name="idCard" id="Text4" class="input4" /></td>
                <td>证件类型</td>
                <td>
                    <select class="input4" name="">
                        <option selected="selected" value="">请选择</option>
                        <option value="01">身份证</option>
                        <option value="02">护照</option>
                        <option value="03">居住证</option>
                        <option value="04">军官证</option>
                        <option value="05">出生证</option>
                        <option value="06">绿卡</option>
                        <option value="07">港澳通行证</option>
                        <option value="08">其他证件</option>
                    </select>
                </td>
                <td>受理日期</td>
                <td>
                    <input type="text" name="date" class="input4" onclick="WdatePicker()" readonly="readonly" /></td>
            </tr>
            <tr>
                <td colspan="6" class="alignCenter">
					<input type="image" src="${base}/web/img/btnSubmit.gif" />
				</td>
            </tr>
        </table>
        
        <!--搜索条件 结束 -->
        		
        <!-- title -->
		<div class="title marginTop15">
            <div class="title-middle">
                <div class="title-left"></div>
                <div class="title-caption">${_listTitle}</div>
                <div class="title-right"></div>
            </div>
        </div>
        
        <!-- table -->
        <table class="tableCenter alignCenter">
            <tr>
                <th width="6%">序号</th>
                <th width="15%">核对编号</th>
                <th width="10%">申请人代表姓名</th>             
                <th width="15%">证件类型</th>
                <th width="24%">证件号</th>
                <th width="15%">受理日期</th>
                <th width="15%">操作</th>
            </tr>
            <#if (_data?size>0)>
	            <#list _data as data>
	            <tr>
	                <td>${data_index+1}</td>
	                <td>${(data.checkTotal.id)!}</td>
	                <td>${(data.checkTotal.familyMember.name)!}</td>
	                <td>${(data.checkTotal.familyMember.idTypeAlias)!}</td>
	                <td>${(data.checkTotal.familyMember.idNumber)!}</td>
	                <td>${(data.checkTotal.handleTime)?string('yyyy-MM-dd')}</td>
	                <td><a href="${_dataUrl}${data.checkTotal.id}/<#if data.claimed>${data.id?c}/true<#else>${data.id?c}/false</#if>">受理</a></td>
	            </tr>
	            </#list>
            </#if>
        </table>
</#macro>

<#macro listIndexNoSearch _listTitle="" _data="" _dataUrl="">
        <!-- title -->
		<div class="title marginTop15">
            <div class="title-middle">
                <div class="title-left"></div>
                <div class="title-caption">${_listTitle}</div>
                <div class="title-right"></div>
            </div>
        </div>
        
        <!-- table -->
        <table class="tableCenter alignCenter">
            <tr>
                <th width="6%">序号</th>
                <th width="15%">核对编号</th>
                <th width="10%">申请人代表姓名</th>             
                <th width="15%">证件类型</th>
                <th width="24%">证件号</th>
                <th width="15%">受理日期</th>
                <th width="15%">操作</th>
            </tr>
            <#if (_data?size>0)>
	            <#list _data as data>
	            <tr>
	                <td>${data_index+1}</td>
	                <td>${(data.checkTotal.id)!}</td>
	                <td>${(data.checkTotal.familyMember.name)!}</td>
	                <td>${(data.checkTotal.familyMember.idTypeAlias)!}</td>
	                <td>${(data.checkTotal.familyMember.idNumber)!}</td>
	                <td>${(data.checkTotal.handleTime)?string('yyyy-MM-dd')}</td>
	                <td><a href="${_dataUrl}${data.checkTotal.id}/<#if data.claimed>${data.id?c}/true<#else>${data.id?c}/false</#if>">受理</a></td>
	            </tr>
	            </#list>
            </#if>
        </table>
</#macro>

